<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <link rel="icon" href="*{/images/favicon.ico}" type="image/x-icon" />
  <meta http-equiv="P3P" content="CP='NOI NID'">
  <meta http-equiv="_broadcast_from_" Content="1" />
  <script type="text/javascript" src="*{/js/jquery.js}"></script>
  <script type="text/javascript" src="*{/js/func.js}"></script>
  <script type="text/javascript" src="*{/js/base64.js}"></script>
	<title>集群支持的脚本信息</title>
<style type="text/css">
.block {
  margin-top:10px;
  border:solid 1px #CCCCCC;
  word-wrap:break-word;
  word-break:normal;
  font-size:14px;
  line-height:22px;
}
</style>
</head>
<body>
<div style="margin:20px;" id="area"></div>
<script type="text/javascript">

function load(){
  var data = getJson("*{/N100146.ha}");
  if(!data || data==null){
    $("#area").html("没有获取到数据");
    return;
  }
  if(data["status"] && data["status"]=="0"){
    $("#area").html(data["msg"]);
    return;
  }
  var block = [];
  var scripts;
  for(ele in data){
    block.push(
      '<div class="block">群组：[',ele,'] 本地：['+(data[ele].local=="1"?'是':'否'),'] 版本：[',data[ele].ver,']<br />'
    );
    scripts = data[ele].script_ids;
    for(var i=0;i<scripts.length;i++){
      if(i>0){
        block.push(',');
      }
      block.push(scripts[i]);
    }
    block.push('</div>');
  }
  $("#area").html(block.join(''));
}
load();
</script>
</body>